#ifndef __CBBODY_H__
#define __CBBODY_H__

USING_NS_CC;

enum EBodyType
{
  EBT_Side,
  EBT_Ball,
};

class CBWorld;

class CBBody : public CBObject
{
public:
  CBBody(CBWorld* world);
  ~CBBody(void);
public:
  virtual void Move(float deltatime,CCPoint& Gravity) {}
  virtual float GetMass() { return 0; }
  virtual bool CalcBodyForce(CCPoint& force) {return false;}
  virtual bool CheckCollision(CBBody* body) {return false;}
  virtual void Collision(CBBody* body) {}
public:
  CBWorld* mWorld;
  bool mMoved;
  bool mCalced;
  EBodyType mType;
  bool mNoCollision;
  CCSprite* mShow;
};

#endif
